package com.student.client.controller;

import com.student.client.entity.Recipe;
import com.student.client.service.RecipeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class RecipeComtroller {
    @Autowired
    private RecipeService recipeService;
    @RequestMapping("/recipe")
    public List<Recipe> getRecipe() {return recipeService.findAllRecipe();}
}
